if(MSVC)
	cmake_minimum_required(VERSION 3.5)
else()
	cmake_minimum_required(VERSION 3.0)
endif()

cmake_policy(SET CMP0048 NEW)

project(JXQ)

#-----------------------------------------------------------------------------------

if(WIN32)
	message(status "\n * Platform: windows")

elseif(UNIX)
	message(status "\n * Platform: unix/linux")

else()
	if(APPLE)
		message(status "\n * Platform: apple")
	endif(APPLE)

	message(status "\n ** Warning: Platforms that may not be supported.")

endif()

#-----------------------------------------------------------------------------------

set(BUILD_PATH ${PROJECT_SOURCE_DIR}/../build)

file(MAKE_DIRECTORY ${BUILD_PATH})

file(COPY ../include DESTINATION ${BUILD_PATH})

#-----------------------------------------------------------------------------------

add_subdirectory(JXQCore)
add_subdirectory(JXQIO)
add_subdirectory(JXQNetwork)
